//
// Created by void on 24-1-8.
//

#ifndef RECTORHTTPSERVER_CHANNELMAP_H
#define RECTORHTTPSERVER_CHANNELMAP_H

#include <stdbool.h>
#include <Channel.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>

struct ChannelMap {
    int size;
    struct Channel** list;
};

struct ChannelMap* channelMapInit(int size);
void channelMapClear(struct ChannelMap* map);
bool makeMapRoom(struct ChannelMap* map, int newSize, int unitSize);


#endif //RECTORHTTPSERVER_CHANNELMAP_H
